package org.jssvc.opac.bean;

import java.util.List;

public class BookSearchResponse {
    /**
     * err : true
     * errMsg : 检索失败
     * total : 461
     * cost : 0.056
     * content : [{"author":"(美)G.布莱克·梅克(G. Blake Meike)著","callNo":"TN929.53/C724","docTypeName":"中文图书","isbn":"978-7-115-48961-6","marcRecNo":"5a53673454427251425175756c46684f702f647177413d3d","num":1,"pubYear":"2018.10","publisher":"人民邮电出版社","title":"Android并发开发"},{"author":"韩迪, 李建庆编著","callNo":"TN929.53/C571","docTypeName":"中文图书","isbn":"978-7-5635-4797-5","marcRecNo":"6169644f7755645a31433655584c4b546d44594c63513d3d","num":20,"pubYear":"2016","publisher":"北京邮电大学出版社","title":"Android实例详解:项目实训开发"}]
     * facetsList : [{"facetList":[{"code":"程序设计","count":389,"name":"程序设计"},{"code":"应用程序","count":325,"name":"应用程序"}],"id":"subjectFacet","label":"主题词"},{"facetList":[{"code":"00214","count":444,"name":"409 自然科学书库"}],"id":"locationFacet","label":"馆藏地"}]
     * filters : []
     */

    private boolean err;
    private String errMsg;
    private int total;
    private double cost;
    private List<ContentBean> content;
    private List<FacetsListBean> facetsList;
    private List<?> filters;

    public boolean isErr() {
        return err;
    }

    public void setErr(boolean err) {
        this.err = err;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public double getCost() {
        return cost;
    }

    public void setCost(double cost) {
        this.cost = cost;
    }

    public List<ContentBean> getContent() {
        return content;
    }

    public void setContent(List<ContentBean> content) {
        this.content = content;
    }

    public List<FacetsListBean> getFacetsList() {
        return facetsList;
    }

    public void setFacetsList(List<FacetsListBean> facetsList) {
        this.facetsList = facetsList;
    }

    public List<?> getFilters() {
        return filters;
    }

    public void setFilters(List<?> filters) {
        this.filters = filters;
    }

    public static class ContentBean {
        /**
         * author : (美)G.布莱克·梅克(G. Blake Meike)著
         * callNo : TN929.53/C724
         * docTypeName : 中文图书
         * isbn : 978-7-115-48961-6
         * marcRecNo : 5a53673454427251425175756c46684f702f647177413d3d
         * num : 1
         * pubYear : 2018.10
         * publisher : 人民邮电出版社
         * title : Android并发开发
         */

        private String author;
        private String callNo;
        private String docTypeName;
        private String isbn;
        private String marcRecNo;
        private int num;
        private String pubYear;
        private String publisher;
        private String title;

        public String getAuthor() {
            return author;
        }

        public void setAuthor(String author) {
            this.author = author;
        }

        public String getCallNo() {
            return callNo;
        }

        public void setCallNo(String callNo) {
            this.callNo = callNo;
        }

        public String getDocTypeName() {
            return docTypeName;
        }

        public void setDocTypeName(String docTypeName) {
            this.docTypeName = docTypeName;
        }

        public String getIsbn() {
            return isbn;
        }

        public void setIsbn(String isbn) {
            this.isbn = isbn;
        }

        public String getMarcRecNo() {
            return marcRecNo;
        }

        public void setMarcRecNo(String marcRecNo) {
            this.marcRecNo = marcRecNo;
        }

        public int getNum() {
            return num;
        }

        public void setNum(int num) {
            this.num = num;
        }

        public String getPubYear() {
            return pubYear;
        }

        public void setPubYear(String pubYear) {
            this.pubYear = pubYear;
        }

        public String getPublisher() {
            return publisher;
        }

        public void setPublisher(String publisher) {
            this.publisher = publisher;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }
    }

    public static class FacetsListBean {
        /**
         * facetList : [{"code":"程序设计","count":389,"name":"程序设计"},{"code":"应用程序","count":325,"name":"应用程序"}]
         * id : subjectFacet
         * label : 主题词
         */

        private String id;
        private String label;
        private List<FacetListBean> facetList;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getLabel() {
            return label;
        }

        public void setLabel(String label) {
            this.label = label;
        }

        public List<FacetListBean> getFacetList() {
            return facetList;
        }

        public void setFacetList(List<FacetListBean> facetList) {
            this.facetList = facetList;
        }

        public static class FacetListBean {
            /**
             * code : 程序设计
             * count : 389
             * name : 程序设计
             */

            private String code;
            private int count;
            private String name;

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }

            public int getCount() {
                return count;
            }

            public void setCount(int count) {
                this.count = count;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }
        }
    }
}
